package com.ag.zrt.service;

import java.util.List;

import com.ag.bean.TbInformation;

public interface InformationService {
	
	public void save(TbInformation info) throws Exception;

	public void update(TbInformation info);

	public void delete(String id);

	public TbInformation findById(String id);

	public void ratify(TbInformation info);

	public int countAll(String countType);// 根据查看类型计算所有该类型的记录数

	public int getNewPage(int i, int k);

	public int getTotalPages(String type);

	public List<TbInformation> findOrSearchByPage(
			// 搜索
			String searchTitle, String searchDate, String searchType,
			int searchRatify, int searchRead, String searchArea,
			int curPage, int nextOrPrev, int sortWay);
	
	public int getTotalPage();
	
	public int getNewInfo();
	public int getAll();

}